package com.gzgs.service;

import com.gzgs.domain.Role;
import com.gzgs.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    List<UserInfo> findAll() throws Exception;


    void saveUser(UserInfo user)throws  Exception;

    UserInfo findById(String id)throws Exception;

    List<Role> findOtherRole(String userid)throws Exception;

    void addRoleToUser(String userId, String[] roleIds)throws Exception;
}
